package com.b.repository;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.core.SearchPage;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import com.b.domain.Category;

@Repository
public interface CategoryRepository extends ElasticsearchRepository<Category, Integer> {
    SearchPage<Category> findCategoriesByTypeLike(String type, PageRequest pageRequest);
}